home *** CD-ROM | disk | FTP | other *** search
-
-
-
- sssseeeettttjjjjuuuussssaaaaggggeeee((((2222)))) sssseeeettttjjjjuuuussssaaaaggggeeee((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- setjusage - set job usage information
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////rrrreeeessssoooouuuurrrrcccceeee....hhhh>>>>
-
- iiiinnnntttt sssseeeettttjjjjuuuussssaaaaggggeeee((((jjjjiiiidddd____tttt jjjjiiiidddd,,,, iiiinnnntttt rrrreeeessssoooouuuurrrrcccceeee,,,, ssssttttrrrruuuucccctttt jjjjoooobbbbrrrruuuussssaaaaggggeeee ****uuuupppp))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _s_e_t_j_u_s_a_g_e function updates the resource usage values for the
- specified job ID. If the _j_i_d parameter is zero, usage values for the
- current job will be updated. If _j_i_d is non-zero, it represents the job
- ID of the job for which usages values are updated. The _r_e_s_o_u_r_c_e
- parameter specifies the resource for which the usage values are to be
- updated. Allowable values are taken from the JLIMIT_xxx macros found in
- the ssssyyyyssss////rrrreeeessssoooouuuurrrrcccceeee....hhhh file. For example, the JLIMIT_CPU macro is for cpu
- time. The _u_p parameter points to a _j_o_b_r_u_s_a_g_e structure in the user
- program where the usage values are stored.
-
- To be able to update resource usage values using _s_e_t_j_u_s_a_g_e, the job must
- be ignoring the accumulation and enforcement of the limits for the
- specified resource. It is determined at job creation if it will be
- ignoring specific resource limits, based upon the values of the following
- system tunable parameters:
-
- [jlimit_pmem_ign]
- Ignore the accumulation and enforcement of the total
- aggregate physical memory usage for the job.
-
- [jlimit_numproc_ign]
- Ignore the accumulation and enforcement of limits on the
- number of processes in the job.
-
- [jlimit_pthread_ign]
- Ignore the accumulation and enforcement of the number of
- pthreads in the job.
-
- [jlimit_nofile_ign]
- Ignore the accumulation and enforcement of the number of
- open files in the job.
-
- [jlimit_rss_ign]
- Ignore the accumulation and enforcement of the total
- aggregate resident set size for the job.
-
- [jlimit_vmem_ign]
- Ignore the accumulation and enforcement of total aggregate
- virtual memory size for the job. for all proce
-
- [jlimit_data_ign]
- Ignore the accumulation and enforcement of total aggregate
- data segment size for the job.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- sssseeeettttjjjjuuuussssaaaaggggeeee((((2222)))) sssseeeettttjjjjuuuussssaaaaggggeeee((((2222))))
-
-
-
- [jlimit_cpu_ign]
- Ignore the accumulation and enforcement of CPU time usage
- for the job.
-
- The values for these tunable parameters can be changed at run-time. By
- default these values are set so that the accumulation and enforcement of
- resource usage limits are not ignored. Changing these values at run-time
- will only affect the behavior of jobs created after the parameter was
- changed. Those jobs that existed prior to the parameter being changed
- will continue with unchanged concerning the accumulation and enforcement
- of job limits for resource usage.
-
- For additional information concering system tunable parameters, please
- see the systune(1M) man page.
-
- The process attempting to use _s_e_t_j_u_s_a_g_e must have the CAP_PROC_MGT
- capability. See the capability(4) and capabilities(4) man pages for more
- information on the capability mechanism that provides fine grained
- control over the privileges of a process.
-
- EEEERRRRRRRROOOORRRRSSSS
- Under the following conditions, the _ssss_eeee_tttt_jjjj_uuuu_ssss_aaaa_gggg_eeee function fails and sets
- _e_r_r_n_o to:
-
- [ENOPKG] The job limits software is not installed.
-
- [ENOJOB] A job with the specified job ID cannot be found.
-
- [ENOACCES] The process does not have the appropriate privileges, so
- permission to set the job usage value is denied.
-
- [ENOPERM] The resource limit accumulation and enforcement is not
- being ignored by the job, so the operation is not
- permitted.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- systune(1M), getrusage(3).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, _s_e_t_j_u_s_a_g_e returns a value of 0. Otherwise, a
- value of -1 is returned and eeeerrrrrrrrnnnnoooo is set to indicate the error.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-